<script>
  navigator.mediaDevices.enumerateDevices().then(devices => {
    window.parent.postMessage(JSON.stringify(devices), "*");
  });
</script>
